package com.crazypos.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.crazypos.dao.PermissionDao;
import com.crazypos.pojo.PermissionEntity;
import com.crazypos.service.IPermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionService extends ServiceImpl<PermissionDao, PermissionEntity> implements IPermissionService {

    @Autowired
    private PermissionDao permissionDao;

    @Override
    public List<PermissionEntity> getAllPermissions() {
        return permissionDao.selectList(null);
    }
}
